import * as index from '@/api/index.js'
	export default {
		data() {
			return {
				info:{
					wx_kf_tel: '',
					wx_kf_ewm: '',
					wx_kf_tis: ''
				},
				// headUrl:require("../../../assets/user/kf_kf.png"), // 
				// telIconUrl:require("../../../assets/user/kf_tel.png"), // 
			};
		},
		onLoad() {
			this.onLoadData();
		},
		methods: {
			onLoadData() {
				index.nameGetConfig({name:'wx_kf_tel,wx_kf_tis,wx_kf_ewm'}).then(res=>{
					this.info.wx_kf_tel = res.data.wx_kf_tel // 获取客服电话
					this.info.wx_kf_tis = res.data.wx_kf_tis // 获取客服提示
					this.info.wx_kf_ewm = res.data.wx_kf_ewm // 获取客服二维码
				})
			},
			call_tel(){
				uni.makePhoneCall({
				    phoneNumber: this.info.wx_kf_tel
				});
			}
		}
	}